package cn.bld.mapper;

import cn.bld.entity.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserMapper {
    public SysUser login(@Param("account") String account, @Param("password")String password);
    public List<SysUser> show();
    public Integer findCount(@Param("realName") String realName ,@Param("roleId") Integer roleId );
    public List<SysUser> findByCondition(@Param("realName") String realName ,@Param("roleId") Integer roleId ,@Param("offset") Integer offset,@Param("size") Integer size);
    public int delById(Integer id);
    public int checkAccount(String account);
    public int insertUser(SysUser sysUser);
    public SysUser findGyId(@Param("id")Integer id);
    public int updateUser(SysUser sysUser);
    public int deleteUser(@Param("userid") Integer userid);
    public int checkPassowrd(@Param("oldPassword") String oldPassword ,@Param("id") Integer id);
    public int updatePassword(@Param("id") Integer id,@Param("newpassword")String newpassword);
}
